home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / shadow.cpp < prev    next >
C/C++ Source or Header  |  1994-10-10  |  535b  |  18 lines

  1. #include "shadow.h"
  2.  
  3. void Shadow::show(rect where, int pixels)
  4.     {
  5.     if(pixels)
  6.     {
  7.     setfillstyle(CLOSE_DOT_FILL, pColorSet->colors.SHADOW_COLOR);
  8.         bar(where.origin.X, where.origin.Y,
  9.         where.origin.X + pixels - 1, where.corner.Y);
  10.     bar(where.origin.X, where.origin.Y,
  11.         where.corner.X, where.origin.Y + pixels - 1);
  12.     bar(where.corner.X - pixels + 1, where.origin.Y,
  13.         where.corner.X, where.corner.Y);
  14.     bar(where.origin.X, where.corner.Y - pixels + 1,
  15.         where.corner.X, where.corner.Y);
  16.     }
  17.     }
  18.